package net.ermannofranco.xml;

/**
 * Namespace bean. (ermanno.franco@gmail.com)
 * @author ermanno
 *
 */
public class Namespace {

	private String prefix = "";
	private String uri;

	public String getPrefix() {
		return prefix;
	}

	public Namespace(String prefix, String uri) {
		if (prefix == null || Static.isMinimalStr(uri))
			throw new SyntaxException("namespace non valido");
		this.prefix = prefix;
		this.uri = uri;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

}
